<?php
/**
 * Created by PhpStorm.
 * User: junyv
 * Date: 2016/9/18
 * Time: 11:52
 */

namespace app\manage\controller;
class Sysmessage extends Base
{
    protected $beforeActionList = [
      'beforeIndex' => ['only'=>'index'],
        'beforeEdit' => ['only'=>'add,edit']
    ];
    public function beforeIndex(){
        $big_menu = [
            'title' => '发送消息',
            'iframe' => url('add'),
            'id' => 'add',
            'width' => '500',
            'height' => '360'
        ];
        $this->_exclude = 'edit';
        $this->assign('big_menu',$big_menu);
    }
    public function beforeEdit(){
        $obj = model('user');
        $modelArr = $obj->modelArr();
        $this->assign('modelArr',$modelArr);
    }
}